package cn.edu.scau.cmi.wujiaxian.exercise10;

import java.io.File;

public class Example10_2 {
	
	public static void main(String[] args) {
		File dir = new File("C:\\Users\\lenovo\\git\\201734020124_wu_jiaxian\\201734020124吴嘉贤\\src\\cn\\edu\\scau\\cmi\\wujiaxian\\exercise10");
		FileAccept fileAccept = new FileAccept();
		fileAccept.setExtendName("java");
		String[] fileNames = dir.list(fileAccept);
		for (String name : fileNames) {
			System.out.println(name);
		}
	}
	
}
